#include "listitembase.h"

#include <QStyleOption>
#include <QPainter>

ListItemBase::ListItemBase(QWidget *parent)
    : QWidget{parent}
{

}

void ListItemBase::setItemType(ListItemType type)
{
    m_item_type = type;
}

ListItemType ListItemBase::getListItemType() const
{
    return m_item_type;
}

void ListItemBase::paintEvent(QPaintEvent *event)
{
    Q_UNUSED(event);
    QStyleOption opt;
    opt.init(this);
    QPainter p(this);
    style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}
